<?php defined("APP_VERSION") OR die("No Access"); ?>
<?php 
session_start();
$member = $_SESSION['member'];
//页面导航条
$this->data['nav_menus'] = array();
$this->data['nav_menus'][] = array('c'=>'index', 'm'=>'index', 'title'=>'首页');		     //首页
$this->data['nav_menus'][] = array('c'=>'index', 'm'=>'recommend', 'title'=>'喵喵推荐');   //喵推荐
$this->data['nav_menus'][] = array('c'=>'index', 'm'=>'friend', 'title'=>'喵喵女生');	     //喵女生
$this->data['nav_menus'][] = array('c'=>'index', 'm'=>'girl', 'title'=>'加入喵喵');		 //加入喵女郎
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<?php echo $this->baseUrl();?>" />
<title>喵喵喵-上海LF点评网</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="Shortcut Icon" href="http://www.dianping.com/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/header_menu.css?<?php echo time();?>" type="text/css" />
<?php if (isset($this->data['links']) && count($this->data['links'])):?>
<?php foreach ($this->data['links'] AS $link):?>
<link rel="stylesheet" href="<?php echo $link;?>?<?php echo time();?>" type="text/css" />
<?php endforeach;?>
<?php endif;?>
<meta name="Keywords" content="喵喵喵,上海点评网,上海,丽人,优惠券,社区论坛,美发,美容/SPA,化妆品,瘦身纤体,美甲,瑜伽,舞蹈,个性写真,整形,齿科 ,淮海路,南京西路,徐家汇,人民广场,中山公园,八佰伴,静安寺,五角场/大学区,打浦桥,长寿路"/> 
<meta name="Description" content="根据合理的商区、地标和丽人商户分类系统，为你提供上海15,878家丽人商户，并通过海量亲身消费者的点评聚合，以各种评分、星级的标准让你选择。"/> 
<meta http-equiv="mobile-agent" content="format=xhtml; http://m.dianping.com/search.aspx?scid=50&c=1"/> 
<script type="text/javascript">
	function $_id(id) {
		return document.getElementById(id);
	}
	
	var searchForm = {
		init : function() {
			$_id("searchtext").onclick = function() {
				if(this.value == '请输入关键字') this.value = '';
			}
			$_id("searchtext").onblur = function() {
				if(this.value == '请输入关键字') this.value = '';
				if(this.value == '') {this.value = '请输入关键字'}
			}
			$_id("searchtext").onkeypress = function(e) {
				  evt = e || window.event;
				  var keyPressed = evt.which || evt.keyCode;
					if (keyPressed == 13 && this.value != '') {
						window.location.href = "<?php echo $this->baseUrl('index', 'search');?>&keywords="+encodeURIComponent(this.value);
					}
			}
			
			$_id('searchbtn').onclick = function() {
				window.location.href = "<?php echo $this->baseUrl('index', 'search');?>&keywords="+encodeURIComponent($_id("searchtext").value);
			}
		}
	}

	window.onload = function() {
		searchForm.init();
	}
</script>
</head>
<body id="top">
<div class="wrap">
  <div class="sec_topnavC">
    <div class="grid_c1 clearfix">
      <!--mod_toolbar-->
      <div class="mod_toolbarC clearfix">
        <div class="col_l col_logo"><div class="mod_cblogo_h30"><a href="javascript:;"></a></div></div>
        <ul class="col_r mod_hlist topnav_list">
          <li>
            <div class="mod_logininfo clearfix">
              <?php if (isset($member['member_id'])) :?>
              <!--已登录-->
              <div id="v:login_info" class="col_l info_logined"> 欢迎您，<span id="v:top_nick" class="u_nickname"><?php echo $member['nickname']?></span>， 
              <a id="v:top_logout" title="退出" class="lnk_logout" href="<?php echo $this->baseUrl('member', 'logout');?>">退出</a> 
              <span class="nav_split" style="display: none"><span>|</span></span> 
              <a style="display: none" onmouseover="document.getElementById('v:mylist').style.display='none'" class="lnk_nav lnk_hasSub lnk_cbpoint lnk_nav_hover" target="_blank" href="http://cb.qq.com/my/my_jifen.html" id="v:showmylist"> 
              <span>彩贝:&nbsp;<span class="c_em1 n_cbpoint" id="v:jifen_balance" style="display: none">加载中</span></span> 
              <span class="mod_iconarr mod_iconarr_d"> <span class="mod_iconarr_bk"></span> </span> 
              </a>
                <!--子菜单-->
                <div style="display:none" class="mod_topnavC_sub sub_topnavA" id="v:mylist">
                  <div class="mod_topnavC_sub_bd">
                    <ul class="topnav_sublist">
                      <li><a target="_blank" href="http://cb.qq.com/my/my_jifen.html">我的彩贝中心</a></li>
                      <li><a target="_blank" href="http://cb.qq.com/my/my_jifen_source.html">积分赚取记录</a></li>
                      <li><a target="_blank" href="http://cb.qq.com/my/my_exchange.html">积分使用记录</a></li>
                    </ul>
                  </div>
                </div>
              </div>
              <?php else :?>
              <!--未登录-->
              <div style="display:block" class="col_l info_notlogin" id="v:logout_info">您还未登录，请 <a title="登录" id="v:top_login" href="<?php echo $this->baseUrl('login', 'index');?>" class="lnk_nav lnk_login">登录</a> </div>
              <?php endif;?>
            </div>
          </li>
          <li class="nav_split"><span>|</span></li>
          <li onmouseout="document.getElementById('v:usecblist').style.display='none'" onmouseover="document.getElementById('v:usecblist').style.display='block'" class="nav_hasSub"> <a class="lnk_nav lnk_hasSub lnk_help" target="_blank" href="http://cb.qq.com/jifen/index.html"> <span>使用彩贝</span> <span class="mod_iconarr mod_iconarr_d"> <span class="mod_iconarr_bk"></span> </span> </a>
            <!--子菜单-->
            <div style="display:none" class="mod_topnavC_sub sub_topnavB" id="v:usecblist">
              <div class="mod_topnavC_sub_bd">
                <ul class="topnav_sublist">
                  <li><a target="_blank" href="http://cb.qq.com/use_jifen_cash.html">积分支付</a></li>
                  <li><a target="_blank" href="http://cb.qq.com/jifen/">积分商城</a></li>
                </ul>
              </div>
            </div>
          </li>
          <li class="nav_split"><span>|</span></li>
          <li onmouseout="document.getElementById('v:getcblist').style.display='none'" onmouseover="document.getElementById('v:getcblist').style.display='block'" class="nav_hasSub"> <a class="lnk_nav lnk_hasSub lnk_tcb" target="_blank" href="http://cb.qq.com/get_jifen.html"> <span>赚取彩贝</span> <span class="mod_iconarr mod_iconarr_d"> <span class="mod_iconarr_bk"></span> </span> </a>
            <div style="display:none" class="mod_topnavC_sub sub_topnavC" id="v:getcblist">
              <div class="mod_topnavC_sub_bd">
                <ul class="topnav_sublist">
                  <li><a target="_blank" href="http://cb.qq.com/get_jifen.html">合作商家</a></li>
                  <li><a target="_blank" href="http://cb.qq.com/shop/">返利商城</a></li>
                </ul>
              </div>
            </div>
          </li>
          <li class="nav_split"><span>|</span></li>
          <li><a class="lnk_nav lnk_tcb" target="_blank" href="http://cb.qq.com/help.html">什么是彩贝</a></li>
          <li class="nav_split"><span>|</span></li>
          <li><a class="lnk_nav lnk_tcb" href="<?php echo $this->baseUrl('member', 'index');?>">个人中心</a></li>
          <li class="nav_split"><span>|</span></li>
          <li><a class="mod_btn mod_btn_gr" href="<?php echo $this->baseUrl('index', 'index');?>"><span class="mod_btn_bd">喵喵首页</span></a></li>
        </ul>
      </div>
      <!--/mod_toolbar-->
    </div>
  </div>
  <div class="sec_header">
    <div class="grid_c1">
      <div class="mod_banner clearfix">
        <!--logo-->
        <div class="col_l mod_logo">
          <h1><a title="QQ彩贝积分" href="<?php echo $this->baseUrl('index', 'index');?>"><span class="hidden">QQ彩贝积分</span></a></h1>
        </div>
        <!--S-搜索组件-->
        <div class="col_r mod_searchfull">
          <!--搜索条-->
          <div class="mod_search" id="islistshow">
            <!--:mod_search_hot表示高亮-->
            <div class="mod_search_bd">
              <input type="text" value="<?php echo $this->data['keywords'] ?>" class="ipt_search" id="searchtext" />
              <span class="ico_gb ico_search" id="searchbtn"></span> 
			</div>
            <div class="mod_search_ft" id="isclicklistshow"></div>
            <!--/mod_search_ft-->
          </div>
          <!--商家下拉选择-->
          <div class="mod_ddlclient">
            <div class="mod_ddlclient_hd clearfix"> <span class="col_l client_name">搜索</span> <span class="col_l mod_iconarr mod_iconarr_d mod_iconarr_sd"> <span class="mod_iconarr_bl"></span> </span> </div>
            <div class="mod_ddlclient_bd">
              <!--TODO:商家下拉浮层-->
            </div>
          </div>
        </div>
        <!--E-搜索组件-->
      </div>
      <div class="f_tx1 mod_menu clearfix">
        <div class="col_l mod_menu_bd">
          <ul class="mod_hlist menu_main">
          <?php foreach ($this->data['nav_menus'] AS $nav_menu):?>
            <li class="menu_item"><a <?php if(strtolower(str_replace('Action','',get_class($this))) == 'index' && $this->action_method == $nav_menu['m']):?>class="menu_on"<?php endif;?> href="<?php echo $this->baseUrl($nav_menu['c'], $nav_menu['m']);?>"><span class="lbl_m lbl_home"><?php echo $nav_menu['title'];?></span></a></li>
		  <?php endforeach;?>
          </ul>
        </div>
        <div class="col_r mod_menu_ext">
          <ul class="mod_hlist">
            <li><a target="_blank" class="lnk_active " href="javascript:void(0);"><span class="lbl_m lbl_avtive">会员签到</span></a></li>
            <li style="display: none;"><a target="_blank" class="lnk_cd " href="javascript:void(0);"><span class="lbl_m lbl_cd">彩贝抢霸</span></a></li>
            <li style="display: none;"><a target="_blank" class="lnk_all " href="javascript:void(0);"><span class="lbl_m lbl_all">商旅频道</span></a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>